package cn.jeeweb.web.modules.sys.entity;

import cn.jeeweb.common.annotate.UiPropertyField;
import cn.jeeweb.common.flag.ObjectMark;
import cn.jeeweb.common.mvc.entity.DataEntity;
import cn.xjzn.framework_Core.DataType;
import cn.xjzn.framework_Core.ModuleServe;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.lang.String;
import java.util.List;

@TableName("sys_dict_group")
@SuppressWarnings("serial")
public class DictGroup extends DataEntity<String> implements ObjectMark {

	/** 分组名称 */
	@TableField(value = "name")
	@UiPropertyField(moduleId = ModuleServe.dictGroupModule,propertyName = "name",labelText="名称")
	private String name;
	/** 备注 */
	@TableField(value = "remarks")
	@UiPropertyField(moduleId = ModuleServe.dictGroupModule,propertyName = "remarks",labelText="备注")
	private String remarks;
	/** 分组编码 */
	@TableField(value = "code")
	@UiPropertyField(moduleId = ModuleServe.dictGroupModule,propertyName = "code",labelText="分组编码",canBeNull=false)
	private String code;

	@TableField(value = "is_sys")
	@UiPropertyField(moduleId = ModuleServe.dictGroupModule,propertyName = "isSys",labelText="是否系统控制")
	private String isSys;

	@TableField(value = "module_id")
	@UiPropertyField(moduleId = ModuleServe.dictGroupModule,propertyName = "moduleId",labelText="模块id")
	private String moduleId;

	@TableField(exist = false)
	@UiPropertyField(moduleId = ModuleServe.dictGroupModule,propertyName = "dictItems",labelText="字典子类",dataType = DataType.SUBLISTDATATYPE,relationIdName = "gid")
	private List<Dict> dictItems;

	@TableField(exist = false)
	private String moduleName;

	/**
	 * 获取 remarks
	 * 
	 * @return: String 备注
	 */
	public String getRemarks() {
		return this.remarks;
	}

	/**
	 * 设置 remarks
	 * 
	 * @param: remarks
	 *             备注
	 */
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	/**
	 * 获取 code
	 * 
	 * @return: String 分组编码
	 */
	public String getCode() {
		return this.code;
	}

	/**
	 * 设置 code
	 * 
	 * @param: code
	 *             分组编码
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * 获取 name
	 * 
	 * @return: String 分组名称
	 */
	public String getName() {
		return this.name;
	}

	/**
	 * 设置 name
	 * 
	 * @param: name
	 *             分组名称
	 */
	public void setName(String name) {
		this.name = name;
	}

	public String getIsSys() {
		return isSys;
	}

	public void setIsSys(String isSys) {
		this.isSys = isSys;
	}

	public String getModuleId() {
		return moduleId;
	}

	public void setModuleId(String moduleId) {
		this.moduleId = moduleId;
	}

	public String getModuleName() {
		return moduleName;
	}

	public void setModuleName(String moduleName) {
		this.moduleName = moduleName;
	}

	public List<Dict> getDictItems() {
		return dictItems;
	}

	public void setDictItems(List<Dict> dictItems) {
		this.dictItems = dictItems;
	}
}
